<template>
  <el-row>
    <el-col :span="6" v-for="(o, index) in 5" :key="o" :offset="index%3 > 0 ? 2 : 0">
        <el-card style="padding: 0px;margin-top:20px;margin-bottom:20px; }" shadow="hover" @click.native="card">
        <img src="@/style/images/logo.png" class="image">
        <div style="padding: 14px;">
            <span>好吃的汉堡</span>
            <div class="bottom clearfix">
            <time class="time">{{ currentDate }}</time>
            <el-button type="text" class="button">操作按钮</el-button>
            </div>
        </div>
        </el-card>
    </el-col>
  </el-row>

</template>
<style>
  .time {
    font-size: 13px;
    color: #999;
  }
  
  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }
  
  .clearfix:after {
      clear: both
  }
</style>

<script>
export default {
  name:"Card",
  data() {
    return {
      currentDate: new Date()
    };
  },
  methods:{
      card(){
          alert("fan")
      }
  }

}
</script>